package Model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class DepartmentChanged {
    private Integer id;
    private String department_name;
    private String department_settlement_code;
    private String department_changed_title;
    private String department_new_content;
    private String department_history_content;

    @DateTimeFormat(pattern = "yyyy-MM-dd\'T\'HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd\'T\'HH:mm:ss", timezone = "GMT+8")
    private Date department_change_time;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date start_change_date;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDepartment_name() {
        return department_name;
    }

    public void setDepartment_name(String department_name) {
        this.department_name = department_name;
    }

    public String getDepartment_settlement_code() {
        return department_settlement_code;
    }

    public void setDepartment_settlement_code(String department_settlement_code) {
        this.department_settlement_code = department_settlement_code;
    }

    public String getDepartment_changed_title() {
        return department_changed_title;
    }

    public void setDepartment_changed_title(String department_changed_title) {
        this.department_changed_title = department_changed_title;
    }

    public String getDepartment_new_content() {
        return department_new_content;
    }

    public void setDepartment_new_content(String department_new_content) {
        this.department_new_content = department_new_content;
    }

    public String getDepartment_history_content() {
        return department_history_content;
    }

    public void setDepartment_history_content(String department_history_content) {
        this.department_history_content = department_history_content;
    }

    public Date getDepartment_change_time() {
        return department_change_time;
    }

    public void setDepartment_change_time(Date department_change_time) {
        this.department_change_time = department_change_time;
    }

    public Date getStart_change_date() {
        return start_change_date;
    }

    public void setStart_change_date(Date start_change_date) {
        this.start_change_date = start_change_date;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", department_name='" + department_name + '\'' +
                ", department_settlement_code='" + department_settlement_code + '\'' +
                ", department_change_time=" + department_change_time +'\'' +
                ", department_name='" + department_changed_title + '\'' +
                ", department_settlement_code='" + department_new_content + '\'' +
                ", department_history_content=" + department_history_content +'\'' +
                '}';
    }
}
